package com.atguigu.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by IntelliJ IDEA.
 * User: zhuangzibing
 * Date: 2020/7/22
 */
@FeignClient(name = "spring-cloud-provider-server")
@Component
public interface HelloRemote {

    @GetMapping("/hello")
    String hello(@RequestParam("name") String name);
}

